<%@ page language="java" contentType="text/html;charset=UTF-8" %><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link type="text/css" rel="stylesheet" href="/static/s/jquery.autocomplete.css" media="all" />
<link type="text/css" rel="stylesheet" href="/static/s/style.css" media="all" />
<link type="text/css" rel="stylesheet" href="/static/tip-yellow/tip-yellow.css" media="all" />
<link type="text/css" rel="stylesheet" href="/static/tip-yellowsimple/tip-yellowsimple.css" media="all" />
<link type="text/css" rel="stylesheet" href="/static/ui/excite-bike/jquery-ui.min.css" media="all"/>


<script type="text/javascript" src="/static/jquery.min.js"></script>
<script type="text/javascript" src=/static/jquery-ui.min.js></script>
<script type="text/javascript" src="/static/g.js" ></script>
<script type="text/javascript" src="/static/sidebar-follow.js"></script>

<script type="text/javascript" src="/static/s/jquery-migrate-1.1.1.js" ></script>
<script type="text/javascript" src="/static/s/jquery.autocomplete.js" ></script>
<script type="text/javascript" src=/static/s/jquery.poshytip.js ></script>
<script type="text/javascript" src="/static/s/f.js" ></script>
<script type="text/javascript" src="/static/s/customer.js"></script>
<script type="text/javascript" src="/static/s/notifit.js"></script>


<script type="text/javascript">
$(function(){
	var wh = $(window).height();
	var dh = $(document).height();
	var t = 0;
	if($('.sidebar').offset()) {
		t = $('.sidebar').offset().top;
	}
	if(dh < wh) {
		$('.sidebar').height(dh);
	} else {
		$('.sidebar').height(wh-t-11);
	}
	// 让滚动条随屏幕滚动保持在可见位置
	(new SidebarFollow()).init({
	    element: jQuery('.sidebar'),
	    distanceToTop: 15
	});
});
//
$(function() {
	if(${STORE_VIEW}) {
		var nav_0 = '';
		nav_0 += '<div><a href="/a/batch/list"><span>进货记录</span></a></div>';
		nav_0 += '<div><a href="/a/store/form"><span>添加库存</span></a></div>';
		nav_0 += '<div><a href="/a/store/dispatch"><span>货物调度</span></a></div>';
		nav_0 += '<div><a href="/a/store/house"><span>库房管理</span></a></div>';
		nav_0 += '<div><a href="/a/store/backtrack"><span>退货管理</span></a></div>';
		$('#message_navigation_store').powerFloat({
			width: '80px'
			, eventType: 'hover'
			, html: nav_0
			, fontSize: '14px'
		});
	}
	//
	if(${SELL_VIEW}) {
		var nav_1 = '';
		nav_1 += '<div><a href="/a/sell/form"><span>新增销售</span></a></div>';
		$('#message_navigation_sell').powerFloat({
			width: '80px'
			, eventType: 'hover'
			, html: nav_1
			, fontSize: '14px'
		});
	}
	if(${CUSTOMER_VIEW}) {
	var nav_2 = '';
		nav_2 += '<div><a href="###" onclick="return customer.accountSearch();"><span>往来账目</span></a></div>';
		nav_2 += '<div><a href="/a/customer/account/form"><span>帐号充值</span></a></div>';
		nav_2 += '<div><a href="/a/customer/notify"><span>群发任务</span></a></div>';
		nav_2 += '<div><a href="/a/customer/msgJobs/create"><span>新建任务</span></a></div>';
		$('#message_navigation_customer').powerFloat({
			width: '80px'
			, eventType: 'hover'
			, html: nav_2
			, fontSize: '14px'
		});
	}
	
	if(${STAT_VIEW}) {
		var nav_last = '';
		nav_last += '<div><a href="/a/stat"><span>综合统计</span></a></div>';
		nav_last += '<div><a href="/a/stat/month"><span>销量统计</span></a></div>';
		nav_last += '<div><a href="/a/stat/store"><span>库存统计</span></a></div>';
		$('#message_navigation_stat').powerFloat({
			width: '80px'
			, eventType: 'hover'
			, html: nav_last
			, fontSize: '14px'
		});
	}
	if(${BRAND_VIEW} || ${CATEGORY_VIEW}  || ${GOODS_VIEW} ) {
		var nav_4 = '';
		nav_4 += '<div><a href="/a/brand/list"><span>品牌管理</span></a></div>';
		nav_4 += '<div><a href="/a/category/list"><span>分类管理</span></a></div>';
		nav_4 += '<div><a href="/a/category/props/list"><span>分类属性</span></a></div>';
		nav_4 += '<div><a href="/a/goods/list"><span>商品管理</span></a></div>';
		nav_4 += '<div><a href="/a/search/index"><span>索引管理</span></a></div>';
		nav_4 += '<div><a href="/a/ticket/prize"><span>奖品设置</span></a></div>';
		nav_4 += '<div><a href="/a/ticket/winners"><span>获奖名单</span></a></div>';
		$('#message_navigation_system').powerFloat({
			width: '80px'
			, eventType: 'hover'
			, html: nav_4
			, fontSize: '14px'
		});
	}
});
</script>